package com.vidmt.api.modules.sys.auth.pwdstrategy;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import com.vidmt.api.modules.sys.auth.DefaultReversPwdStrategy;

public class PlainStrategy extends DefaultReversPwdStrategy {
	private static Logger log = LoggerFactory.getLogger(PlainStrategy.class);

	@Override
	public String getAlg() {
		return "plain";
	}

	@Override
	public String getCyphered(String rawkey, String plainpwd) {
		return plainpwd;
	}

	@Override
	protected String getPlainPwd(String rawkey, String ecryptedpwd) {
		return ecryptedpwd;
	}
}
